package cate.game.role.friend.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBFriend;
import easy.java.dev.note.NoteField;


@ClientMsg(title = "接收礼物 の 请求")
@OperationSetter(GDOperation.FRIEND_RECV_REWARD)
public class FriendGiftRecvReq implements MsgInput {
    @NoteField(value = "好友的唯一ID")
    public String uid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getFriend().recvGift(uid);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFriend.GIFT_HANDLE_REQ;
    }
}
